============================= test session starts ==============================
platform linux -- Python 3.14.0, pytest-8.4.2, pluggy-1.6.0
rootdir: /tmp/pytest-of-runner/pytest-0/test_different_test_types0
collected 8 items
f.py FF.sxXE. [100%]
==================================== ERRORS ====================================
_________________________ ERROR at setup of test_error _________________________
@pytest.fixture
def s():
> raise Exception('boom!')
E Exception: boom!
f.py:30: Exception
=================================== FAILURES ===================================
_________________________________ test_answer __________________________________
def test_answer():
> assert inc(3) == 5
E assert 4 == 5
E + where 4 = inc(3)
f.py:8: AssertionError
_______________________________ test_fail_stack ________________________________
def test_fail_stack():
> fail2()
f.py:14:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
def fail2():
> raise RuntimeError('error!')
E RuntimeError: error!
f.py:11: RuntimeError
=============================== warnings summary ===============================
f.py::test_warning
/tmp/pytest-of-runner/pytest-0/test_different_test_types0/f.py:36: UserWarning: WARNING!
warnings.warn(UserWarning("WARNING!"))
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=========================== short test summary info ============================
FAILED f.py::test_answer - assert 4 == 5
FAILED f.py::test_fail_stack - RuntimeError: error!
ERROR f.py::test_error - Exception: boom!
= 2 failed, 2 passed, 1 skipped, 1 xfailed, 1 xpassed, 1 warning, 1 error in 0.02s =